﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Network.StepProtocol;

/// <summary>
/// 报文类型
/// </summary>
public enum PackageTypeType : int
{
    /// <summary>
    /// Step
    /// </summary>
    Step = '0',
    /// <summary>
    /// Xtp
    /// </summary>
    Xtp = '1',
    /// <summary>
    /// Its
    /// </summary>
    Its = '2',
}
public abstract class Package
{
    public Package(PackageTypeType packageType)
    {
        PackageType = packageType;
        SessionID = 0;
    }

    public PackageTypeType PackageType;
    public long SessionID;
    public EndPoint? IPAddress;
}
